package com.cipe.cmrs.controllers;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cipe.cmrs.model.User;

@Controller
public class LogoutController extends BaseController {
	
	private static final long serialVersionUID = 6903009192668333406L;

	@RequestMapping("/logout.do")
	public String logout(HttpSession session, Model model) {
		session.invalidate();
		return "redirect:login.do";
	}
}
